{% extends "../base.html" %}
{% block page_title %}首页{% end %}


{% block content %}

<div class="countgo pull-left">
    <div class="zt">
        <!--MAN -->

        <div class="remain" style="height: 553px;">
            <div class="gao1"></div>
            <div class="page-header long-header" style="padding-bottom: 30px;">
                <h3>Compound Center
                    <small> 主页</small>

                     <!--<a href="/draw" target="_blank" class="pull-right" ><img style="width: 130px" src="http://58.221.44.174:96/ui_yun/images/cj.gif"></a>-->
                </h3>



            </div>

            <div>
                <ol class="breadcrumb">
                    <li><span class="glyphicon glyphicon-home" aria-hidden="true"></span> <a href="/user/home">主页</a>
                    </li>
                </ol>
            </div>

            <div class="panel">
                <table class="zijitable">
                    <tbody>
                    <tr>
                        <td>会员编号: {{myuser['phone']}}</td>
                        <td>会员姓名:{{myuser.get('real_name','')}}</td>
                        <td>推荐人编号:
                            {{myuser.get('admin','无')}}
                        </td>
                    </tr>
                    <tr>
                        <td>激活状态:
                            {%if myuser.get('is_active')%}已激活{%else%}未激活{%end%}
                        </td>
                        <td>推荐人数:
                            {{member_count}}
                        </td>
                        <td>会员等级:
                            {%if myuser.get('level')==0%}
                            <span class="label label-default">VIP</span>
                            {%else%}
                            <span class="label label-danger">VIP{{myuser.get('level',0)}}</span>

                            {%end%}
                        </td>
                    </tr>
                    <tr>
                        <td>激活币余: {{myuser.get('money',0)}}</td>
                        <td>金币余额: {{myuser.get('jinbi',0)}}</td>
                        <td>金币收益总计:
                            {{total_consume}}


                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">

                            推广链接: <a href="{{handler.settings['weburl']}}/register?r={{myuser.get('uid')}}"
                                     target="_blank">{{handler.settings['weburl']}}/register?r={{myuser.get('uid')}}</a>
                        </td>
                    </tr>

                    </tbody>
                </table>
            </div>


            <div class="panel panel-default">
                <div class="panel-heading">最新系统公告 <a href="/news_list">查看全部公告</a></div>
                <table class="table table-striped table-hover">
                    <tbody>
                    <tr>
                        <td>标题</td>
                        <td>发布时间</td>
                    </tr>

                    {%for n in news%}
                    <tr>
                        <td>[系统公告] <a href="/news?id={{n.get('id')}}">{{n.get('title')}}</a></td>
                        <td>{{n.get('time')}}</td>
                    </tr>

                    {%end%}
                    </tbody>
                </table>
            </div>


        </div>
        <!--MAN End-->
    </div>
</div>
<script>
    mgo('lindex');
</script>
{%end%}
